{% extends "base.html" %}

{% block title %}Manage Your Watch Item{% endblock %}

{% block maincontent %}
    <h1> Manage Your Watch Item </h1>

    <p> Please create your watch items to receive the emails when the new posting was added.</p>

<form action="" method='post'>
    <table class="space_request_table">
        {% for wi in watch_items %}
        <tr>
            <td>
                <a href="/addedititem?watch_item_id={{ wi.key.id }}">
                    {{ wi.keyword }} </a>
            </td>
            <td> {{ wi.start_date }} - {{ wi.end_date }} </td>
            <td>
                <input type="submit" value="Delete" name="delete_{{ wi.key.id }}">
            </td>
        </tr>
        {%  endfor %}

    </table>
    <input type="submit" id="next"
           name="add_watch_item_submit"
           value="Add Watch Item"/>

</form>

{% endblock %}
